<?php
/**
 * Created by PhpStorm.
 * User: 戎大富
 * Date: 2017/12/22
 * Time: 15:55
 */
namespace app\admin\validate;

use think\Validate;
class KnowledgeValidate extends Validate
{
    protected $rule = [
        'knowledge_context' => 'require',
        'knowledge_name' =>'require',
    ];
    protected $message = [
        'knowledge_context.require' => '内容不能空',
        'knowledge_name.require' => '知识库名称不能为空',

    ];
}